/**
 * TrackRecordTrackRecord.java
 * 
 * Created Date: 2014骞�1鏈�4鏃� *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */
package com.centling.bluecollar.customer.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author ted.ma 
 *
 */
@Entity
@Table(name = "t_schoolTrackRecor") //璺熻釜璁板綍琛�
public class SchoolTrackRecord {
	
	private String id;
	private String detail;
	private String validTime;//鑱旂郴鏂瑰紡鏈夋晥鏃堕棿
	private String createdTime;//鍒涘缓鏃堕棿
	private String status;
	private SchoolCustomer schoolCustomer;
	
	
	
	/**
	 * @return the id
	 */
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
	
		return id;
	}

	
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
	
		this.id = id;
	}

	
	/**
	 * @return the detail
	 */
	public String getDetail() {
	
		return detail;
	}
	
	/**
	 * @param detail
	 *            the detail to set
	 */
	public void setDetail(String detail) {
	
		this.detail = detail;
	}
	


	
	
	/**
	 * @return the validTime
	 */
	public String getValidTime() {
	
		return validTime;
	}


	
	/**
	 * @param validTime the validTime to set
	 */
	public void setValidTime(String validTime) {
	
		this.validTime = validTime;
	}


	
	/**
	 * @return the createdTime
	 */
	public String getCreatedTime() {
	
		return createdTime;
	}


	
	/**
	 * @param createdTime the createdTime to set
	 */
	public void setCreatedTime(String createdTime) {
	
		this.createdTime = createdTime;
	}


	
	/**
	 * @return the status
	 */
	public String getStatus() {
	
		return status;
	}


	
	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
	
		this.status = status;
	}


	/**
	 * @return the schoolCustomer
	 */
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="schoolcustomerid")
	public SchoolCustomer getSchoolCustomer() {
	
		return schoolCustomer;
	}


	
	/**
	 * @param schoolCustomer the schoolCustomer to set
	 */
	public void setSchoolCustomer(SchoolCustomer schoolCustomer) {
	
		this.schoolCustomer = schoolCustomer;
	}
	
	
}
